class A5_3 {
  double f(double x,double y){
    return x+y;
  }
  static int g(int n){
    return n*n;
  }
}
class B5_3 extends A5_3 {
  double f(double x,double y){
    double m=super.f(x,y);
    return m+x*y;
  }
  static int g(int n) {
    int m=A5_3.g(n);
    return m+n;
  }
}
public class E5_3 {
  public static void main (String args[]) {
    B5_3 b=new B5_3();
    System.out.println(b.f(10.0,8.0));
    System.out.println(b.g(3));
    A5_3 a=new B5_3();
    System.out.println(a.f(10.0,8.0));
    System.out.println(a.g(3));
  }
}
